import request from '@/utils/request'

// 查询影视列表
export function listBasics(query) {
  return request({
    url: '/movie/basics/list',
    method: 'get',
    params: query
  })
}

// 查询影视详细
export function getBasics(movieId) {
  return request({
    url: '/movie/basics/' + movieId,
    method: 'get'
  })
}

// 新增影视
export function addBasics(data) {
  return request({
    url: '/movie/basics',
    method: 'post',
    data: data
  })
}

// 修改影视
export function updateBasics(data) {
  return request({
    url: '/movie/basics',
    method: 'put',
    data: data
  })
}

// 删除影视
export function delBasics(movieId) {
  return request({
    url: '/movie/basics/' + movieId,
    method: 'delete'
  })
}

// 导出影视
export function exportBasics(query) {
  return request({
    url: '/movie/basics/export',
    method: 'get',
    params: query
  })
}